home *** CD-ROM | disk | FTP | other *** search
/ Aminet 20 / Aminet 20 (1997)(GTI - Schatztruhe)[!][Aug 1997].iso / Aminet / comm / www / HTP.lha / HTP / source / os.h < prev    next >
C/C++ Source or Header  |  1997-06-21  |  1KB  |  53 lines

  1. /*
  2. //
  3. // os.h
  4. //
  5. // Operating system definitions and constants
  6. //
  7. // Copyright (c) 1995-96 Jim Nelson.  Permission to distribute
  8. // granted by the author.  No warranties are made on the fitness of this
  9. // source code.
  10. // Amiga version - 1997 - Geert Bevin
  11. //
  12. */
  13.  
  14. #ifndef OS_H
  15. #define OS_H
  16.  
  17. #include <exec/types.h>
  18.  
  19. #define PROGRAM_OS              ("Amiga")
  20.  
  21. /*
  22. // Linux/UNIX is the only other OS being actively developed
  23. // other UNIX platforms should pretty much look like this, though
  24. */
  25.  
  26. #include <unistd.h>
  27.  
  28. #define stricmp                 strcasecmp
  29. #define strnicmp                strncasecmp
  30.  
  31. /* directory delimiters */
  32. #define DIR_DELIMITER           '/'
  33. #define DIR_DELIMITER_STRING    "/"
  34. #define DIR_CURRENT_STRING      "./"
  35.  
  36. /* the "other" filesystem delimiter table (for conversion) */
  37. #define OTHER_FILESYSTEM_DELIMITER  "\\"
  38.  
  39. /* max pathname for UNIX (may be more, but this is sufficient) */
  40. /* (BTW, these values may be incorrect, but they should be sufficient. */
  41. /* Anyone with more concrete values, please email me.) */
  42. #define MAX_PATHNAME_LEN        (256)
  43. #define MAX_CMDLINE_LEN         (1024)
  44. #define MAX_FILENAME_LEN        (32)
  45.  
  46. /*
  47. // all supported filesystem delimiters
  48. */
  49. #define ALL_FILESYSTEM_DELIMITERS   "/\\"
  50.  
  51. #endif
  52.  
  53.